<?php
/**
 * Created by PhpStorm.
 * User: chenzhitao
 * Date: 2018/4/26
 * Time: 下午5:52
 */

namespace App\Models;


use Illuminate\Database\Eloquent\Model;

class News extends Model
{
    protected $table = "t_news";
    public function tags()
    {
        return $this->belongsToMany(Tag::class,'t_newstag',"news_id","tag_id");
    }

}